﻿/*
 * User: Masy Freddy
 * Date: 09/02/2012
 * Time: 7:15 
 */
using System;
using System.AddIn.Pipeline;
using MetaVideoEditorEvolved.AddIn.AddInViews;
using MetaVideoEditorEvolved.AddIn.Contracts;

namespace MetaVideoEditorEvolved.AddIn.AddInAdapters
{
	/// <summary>
	/// Description of ExtraToolsAdapter.
	/// </summary>
	[AddInAdapter]
	public class ExtraToolsAdapter : ContractBase, IExtraToolsContract
	{
		private ExtraToolsView view;
		
		public ExtraToolsAdapter(ExtraToolsView view)
		{
			this.view = view;
		}
		
		public void ShowOption()
		{
			AppDispatcher.Current.DoWork(delegate()
			                             {
			                             	this.view.ShowOption();
			                             });
		}
		
		public bool HasOption()
		{
			return this.view.HasOption();
		}
	}
}
